package com.pig4cloud.pig.module.api.entity.farm;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 农场的养殖场对象 farm_feed
 *
 * @author ruoyi
 * @date 2021-12-15
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("farm_feed")
public class FarmFeed implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 农场id
     */
    private Integer farmId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 饲料厂名字可自定义
     */
    private String feedName;

    /**
     * 当前可用的饲料数量
     */
    private Integer feedCount;

    /**
     * 每小时产生饲料的产量
     */
    private Integer hourYield;

    /**
     * 最后一次的产出时间
     */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastProductTime;

}
